<!DOCTYPE html>
<html lang="zh-CN">
<head>
  {% load static %}
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{{ action_title }} - 资产操作</title>
  <link href="{% static 'vendor/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
  <link href="{% static 'vendor/fontawesome/css/all.min.css' %}" rel="stylesheet">
  <style>
    body { background: transparent; }
  </style>
</head>
<body>
  <div class="container py-3">
    {% if messages %}
    <div class="mb-3">
      {% for message in messages %}
        <div class="alert alert-{{ message.tags }} mb-2" role="alert">{{ message }}</div>
      {% endfor %}
    </div>
    {% endif %}

    <div class="card shadow-sm">
      <div class="card-header d-flex align-items-center">
        <strong class="me-2">{{ action_title }}</strong>
        <span class="text-muted">资产：{{ asset.name }}（编号：{{ asset.asset_number }}）</span>
      </div>
      <div class="card-body">
        <form method="post">
          {% csrf_token %}
          <!-- 占位表单区域，可按需扩展 -->
          <p class="text-muted">此为占位模态内容。提交后仅显示成功提示并留在当前模态中。</p>

          <div class="d-flex gap-2">
            <button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">关闭</button>
            <button type="submit" class="btn btn-primary">提交</button>
          </div>
        </form>
      </div>
    </div>
  </div>
  <script src="{% static 'vendor/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
</body>
</html>
